<template>

  <!--  此功能暂不实现-->
  <div class="app-main" v-loading="loading">
    <div class="divTmp" v-show="loading"></div>
    <div class="index-body" v-show="!loading">
      <div class="ko-view">
        <div class="securitySetting-page clearfix">
          <p class="gray tip">
            开启后，登录时将先进行身份验证，以保障你的账号安全
          </p>
          <router-link to="" class="iconfont icon_edit setSecurity isOpen">

            <i class="el-icon-lock"></i>
            <i>开启</i>
            <span>登陆保护</span>
          </router-link>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "safe",
  data() {
    return {
      loading: true,
    }
  },
  created() {
    this.init()
  },
  methods: {
    // 初始化资源
    async init() {
      this.closeLoading()
    },

    // 加载动画
    closeLoading() {
      this.timer = null
      this.timer = setTimeout(() => {
        this.loading = false
      }, 500)
    }
  }


}
</script>

<style scoped>


*, :after, :before {
  box-sizing: border-box;
}

.divTmp {
  width: 100%;
}

::v-deep .el-loading-mask {
  transition: opacity 0s;
}

::v-deep .el-loading-spinner {
  top: 100%;
  margin-top: 30%;
  width: 100%;
  text-align: center;
  position: absolute;
}

div {
  display: block;
}

body, html {
  color: #444;
  font-size: 14px;
}

.securitySetting-page {
  text-align: center;
  margin-top: 50px;
}

.tip {
  height: 20px;
  line-height: 18px;
  font-size: 14px;

  margin-bottom: 24px;

}

.gray {
  color: #969696;
}

.setSecurity {
  background: #fafafa;
  border: 1px solid #e3e3e9;
  border-radius: 4px;
  padding: 8px 11px;
  cursor: pointer;
  color: #5c89f6;
  line-height: 33px;
  font-size: 14px;
  text-decoration: none;
}
</style>